package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.Answer;
import cn.wolfcode.luowowo.cache.vo.WendaStats;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AnswerMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Answer record);

    List<Answer> selectByQuestionId(Long questionId);

    List<Answer> selectAll();

    int updateByPrimaryKey(Answer record);

    Answer selectBestAnswerByQuestionId(@Param("id") Long questionId);

    WendaStats selectById(Long answerId);

}